package com.cn.wanxi.thread;

import java.util.Date;

public class Animal  {
 private Integer id;
 private Date createTime;
 private Date updateTime;
 private String remark;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    protected String name;
    protected String type;
    /**
     * 单继承 多实现 接口
     * 1.什么时候会用到继承？
     * 有公共方法或者属性的时候会涉及的继承
     */
    protected  void aa(){
        System.out.println(name);
    }
}
